//-------------------------------------------------------------------------------------------------
// Title: BasicShader.fx
// Author: Gael Huber
// Description: A simple shader used for rendering. (From DirectX11 MSDN tutorials)
//-------------------------------------------------------------------------------------------------

//-------------------------------------------------------------------------------------------------
struct VS_OUTPUT
{
	float4 Pos : SV_POSITION;
	float4 Color : COLOR0;
};

//-------------------------------------------------------------------------------------------------
// Vertex Shader
//-------------------------------------------------------------------------------------------------
VS_OUTPUT VS(float4 Pos : POSITION, float4 Color : COLOR)
{
	VS_OUTPUT output = (VS_OUTPUT)0;
	output.Pos = Pos;
	output.Color = Color;
	return output;
	//return Pos;
}

//-------------------------------------------------------------------------------------------------
// Pixel Shader
//-------------------------------------------------------------------------------------------------
float4 PS(VS_OUTPUT input) : SV_Target
{
	return input.Color;
	//return float4(1.0f, 1.0f, 0.0f, 1.0f);	// Yellow, with Alpha = 1
}